<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.stu.com/myfn" prefix="myfn"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>增加数据1</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
   	<form action="${pageContext.request.contextPath}/servlet/AddCustom" method="post">
   		<table width="88%" border="1">
   			<tr>
	   			<td>姓名</td>
	   			<td><input type="text" name="name" value="${formbean.name }"></td>
   			</tr>
   			<tr>
	   			<td>性别</td>
	   			<td><input type="radio" name="gender" value="1" ${formbean.gender=='1'?'checked="checked"':'' }>男
	   			<input type="radio" name="gender" value="0" ${formbean.gender=='0'?'checked="checked"':''}>女</td>
   			</tr>
   			<tr>
	   			<td>生日(yyyy-MM-dd)</td>
	   			<td><input type="text" name="birthday" value="${formbean.birthday }">${formbean.errors.birthday }</td>
   			</tr>
   			<tr>
	   			<td>电话</td>
	   			<td><input type="text" name="cellphone" value="${formbean.cellphone }"></td>
   			</tr>
   			<tr>
	   			<td>邮箱</td>
	   			<td><input type="text" name="email" value="${formbean.email }"></td>
   			</tr>
   			<tr>
	   			<td>爱好</td>
	   			<td>
	   				<input type="checkbox" name="hobby" value="吃" ${myfn:contains(formbean.hobby,'吃')?'checked="checked"':'' }>吃
	   				<input type="checkbox" name="hobby" value="喝" ${myfn:contains(formbean.hobby,'喝')?'checked="checked"':'' }>喝
	   				<input type="checkbox" name="hobby" value="玩" ${myfn:contains(formbean.hobby,'玩')?'checked="checked"':'' }>玩
	   			</td>
   			</tr>
   			<tr>
	   			<td>类型</td>
	   			<td><input type="radio" name="type" value="普通" checked="checked">普通
	   			<input type="radio" name="type" value="VIP" >VIP</td>
   			</tr>
   			<tr>
	   			<td>描述</td>
	   			<td><textarea name="description" rows="3" cols="50" ></textarea></td>
   			</tr>
   			<tr><td colspan="2" align="center">
   				<input type="submit" value="提交"/>
   			</td></tr>
   		</table>
   	</form>
  </body>
</html>
